package fr.cdj.thebox.client.services;

import com.google.gwt.user.client.rpc.AsyncCallback;

import fr.cdj.thebox.shared.User;

public interface LoginServiceAsync {

	void loginServer(String name, String password, AsyncCallback<User> callback);

	void loginFromSessionServer(AsyncCallback<User> callback);

	void changePassword(String name, String newPassword, AsyncCallback<Boolean> callback);

	void logout(AsyncCallback<Void> callback);

}
